* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f5f6fa;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 64px;
}

.main-header {
    background-color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 1000;
}

.main-header h1 {
    color: #2c3e50;
    font-size: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logout-btn {
    color: #e74c3c;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #fde8e7;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 1.5rem;
    min-height: calc(100vh - 64px);
    background-color: #f5f6fa;
}

.sidebar {
    width: 260px;
    background-color: #fff;
    padding: 1.5rem 0;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 64px;
    overflow-y: auto;
    z-index: 100;
}

.menu-group {
    margin-bottom: 2rem;
}

.menu-group h3 {
    padding: 0 1.5rem;
    color: #7f8c8d;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background-color: #f1f5f9;
    color: #3498db;
    border-left-color: #3498db;
}

.icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.building-icon {
    background-image: url('../images/building.svg');
}

.room-icon {
    background-image: url('../images/room.svg');
}

.student-icon {
    background-image: url('../images/student.svg');
}

.hygiene-icon {
    background-image: url('../images/hygiene.svg');
}

.discipline-icon {
    background-image: url('../images/discipline.svg');
}

.add-icon {
    background-image: url('../images/add.svg');
}

.edit-icon {
    background-image: url('../images/edit.svg');
}

.delete-icon {
    background-image: url('../images/delete.svg');
}

.content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 64px;
    right: 0;
    left: 260px;
    z-index: 99;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 1.5rem;
}

.section-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    position: relative;
    overflow: hidden;
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #3498db;
}

.card-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.primary-btn:hover {
    background-color: #2980b9;
}

.select-control {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
    background-color: #fff;
}

.modal {
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.loading::before {
    content: '加载中...';
    background-color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 添加空状态和错误状态样式 */
.empty-state,
.error-state {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.empty-state p,
.error-state p {
    margin-bottom: 1rem;
    color: #666;
}

.error-state {
    border: 1px solid #ffcdd2;
    background-color: #ffebee;
}

.error-state p {
    color: #c62828;
}

/* 添加连接错误样式 */
.connection-error {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: center;
}

.connection-error h2 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.connection-error p {
    color: #666;
    margin-bottom: 1.5rem;
}

.connection-error button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 2rem;
    border-radius: 4px;
    cursor: pointer;
}

.connection-error button:hover {
    background-color: #2980b9;
}

/* 添加按钮样式 */
.danger-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.danger-btn:hover {
    background-color: #c0392b;
}

/* 添加文本样式 */
.text-muted {
    color: #666;
    font-size: 0.875rem;
}

/* 修改卡片样式 */
.card {
    position: relative;
    overflow: hidden;
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.card p {
    margin-bottom: 0.5rem;
}

.card p:last-of-type {
    margin-bottom: 1rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* 搜索框样式 */
.search-box {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #3498db;
    outline: none;
}

/* 列表项样式 */
.list-item {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.student-info h4,
.hygiene-info h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* 表单样式优化 */
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

/* 次要按钮样式 */
.secondary-btn {
    background-color: #95a5a6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.secondary-btn:hover {
    background-color: #7f8c8d;
}

/* 修改模态框样式 */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.modal-close:hover {
    color: #333;
}

.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 16px;
    background-color: currentColor;
}

.modal-close::before {
    transform: rotate(45deg);
}

.modal-close::after {
    transform: rotate(-45deg);
}

/* 修改section切换动画 */
.section {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.section.hidden {
    display: none;
    opacity: 0;
}

/* 添加响应式布局调整 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}

/* 添加滚动条样式 */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 修改section-header样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 64px;
    right: 0;
    left: 260px;
    z-index: 99;
}

/* 修改section内容区域样式，为固定的header留出空间 */
.section {
    padding-top: 80px;
}

/* 修改响应式布局 */
@media (max-width: 768px) {
    .section-header {
        left: 0;
    }
}

/* 优化section-actions样式 */
.section-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

/* 优化select-control样式 */
.select-control {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
    background-color: #fff;
}

/* 添加阴影过渡效果 */
.section-header {
    transition: box-shadow 0.3s ease;
}

.section-header.scrolled {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 房间管理页面布局 */
.room-management {
    padding-top: 80px;  /* 为固定header留出空间 */
    width: 100%;
}

/* 房间网格布局 */
.room-grid {
    width: 100%;
    max-width: 1400px;  /* 限制最大宽度 */
    margin: 0 auto;  /* 居中显示 */
    padding: 2rem;
}

/* 宿舍楼概览布局 */
.building-overview {
    position: fixed;  /* 固定定位 */
    top: 144px;  /* 头部导航栏(64px) + section-header(80px) */
    left: 260px;  /* 侧边栏宽度 */
    right: 0;
    bottom: 0;
    overflow-y: auto;  /* 允许内容滚动 */
    padding: 2rem;
    background-color: #f5f6fa;  /* 与主背景色一致 */
    z-index: 98;  /* 确保在section-header下方 */
}

/* 宿舍楼概览内容容器 */
.building-overview-content {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
}

/* 修改卡片网格布局 */
.building-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    width: 100%;
    padding-bottom: 2rem;  /* 添加底部内边距 */
}

/* 响应式布局调整 */
@media (max-width: 1200px) {
    .building-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .building-overview {
        left: 0;  /* 在移动端时占满宽度 */
        padding: 1rem;
    }
    
    .building-cards {
        grid-template-columns: 1fr;
    }
}

/* 添加滚动条样式 */
.building-overview::-webkit-scrollbar {
    width: 6px;
}

.building-overview::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.building-overview::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.building-overview::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 宿舍楼卡片样式 */
.building-card {
    width: 100%;  /* 确保卡片占满网格单元格 */
    min-width: unset;  /* 移除最小宽度限制 */
    max-width: unset;  /* 移除最大宽度限制 */
    margin: 0;  /* 移除外边距 */
}

/* 响应式布局调整 */
@media (max-width: 1400px) {
    .building-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 1024px) {
    .building-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .room-grid {
        padding: 1rem;
    }

    .building-cards {
        grid-template-columns: 1fr;
    }
}

/* 确保内容不会溢出 */
.building-card-content {
    width: 100%;
    box-sizing: border-box;
}

/* 统一卡片间距 */
.building-card-header,
.building-card-content,
.building-card-footer {
    padding: 1.5rem;
}

/* 优化统计信息布局 */
.building-stats {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    width: 100%;
    box-sizing: border-box;
}

/* 房间卡片样式 */
.room-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 房间卡片头部 */
.room-card-header {
    padding: 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.room-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
}

.room-status {
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-available {
    background: #c6f6d5;
    color: #2f855a;
}

.status-full {
    background: #fed7d7;
    color: #c53030;
}

.status-empty {
    background: #e2e8f0;
    color: #4a5568;
}

/* 房间信息部分 */
.room-info {
    padding: 1.25rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1rem;
    color: #2d3748;
    font-weight: 500;
}

/* 房间操作按钮 */
.room-actions {
    padding: 1.25rem;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.room-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.action-primary {
    background: #ebf8ff;
    color: #3182ce;
}

.action-primary:hover {
    background: #bee3f8;
}

.action-danger {
    background: #fff5f5;
    color: #e53e3e;
}

.action-danger:hover {
    background: #fed7d7;
}

/* 添加房间表单样式 */
.add-room-form {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 480px;
    margin: 1rem auto;
}

.form-title {
    font-size: 1.25rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #edf2f7;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66,153,225,0.1);
    outline: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #edf2f7;
}

/* 宿舍楼概览样式 */
.building-overview {
    padding: 2rem;  /* 增加内边距 */
    max-width: 1400px;  /* 限制最大宽度 */
    margin: 0 auto;  /* 居中显示 */
}

.overview-header {
    text-align: center;
    margin-bottom: 3rem;  /* 增加底部间距 */
}

.overview-header h3 {
    font-size: 1.75rem;  /* 增大标题字号 */
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.overview-subtitle {
    color: #718096;
    font-size: 0.875rem;
}

.building-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));  /* 调整最小宽度 */
    gap: 2rem;  /* 增加卡片间距 */
    width: 100%;
}

.building-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 350px;  /* 设置最小宽度 */
    max-width: 450px;  /* 设置最大宽度 */
    margin: 0 auto;  /* 居中显示 */
    height: 100%;  /* 确保所有卡片高度一致 */
    display: flex;
    flex-direction: column;
}

.building-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.building-card-header {
    padding: 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.building-card-header h4 {
    font-size: 1.25rem;
    color: #2d3748;
    margin: 0;
}

.building-floors {
    padding: 0.25rem 0.75rem;
    background: #ebf8ff;
    color: #3182ce;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.building-card-content {
    padding: 1.5rem;
    flex: 1;  /* 让内容区域占满剩余空间 */
    display: flex;
    flex-direction: column;
}

.building-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.stat-item:hover {
    background: #f1f5f9;
}

.building-description {
    margin-top: auto;  /* 将描述推到底部 */
    padding-top: 1.5rem;
    border-top: 1px solid #edf2f7;
}

.building-card-footer {
    padding: 1rem;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
    text-align: center;
}

.view-rooms {
    color: #3182ce;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.view-rooms .icon {
    width: 16px;
    height: 16px;
    filter: invert(47%) sepia(82%) saturate(1162%) hue-rotate(176deg) brightness(96%) contrast(98%);
}

/* 响应式布局调整 */
@media (max-width: 1200px) {
    .building-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .building-card {
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .building-cards {
        grid-template-columns: 1fr;  /* 单列显示 */
    }
    
    .building-overview {
        padding: 1rem;
    }
    
    .building-card {
        min-width: unset;  /* 移除最小宽度限制 */
        width: 100%;
    }
}

/* 按钮基础样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 主要按钮样式 */
.btn-primary {
    background-color: #3182ce;
    color: white;
}

.btn-primary:hover {
    background-color: #2c5282;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

/* 危险按钮样式 */
.btn-danger {
    background-color: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background-color: #c53030;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 次要按钮样式 */
.btn-secondary {
    background-color: #edf2f7;
    color: #4a5568;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    color: #2d3748;
}

/* 按钮内的图标样式 */
.btn .icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.btn-primary .icon {
    filter: brightness(0) invert(1);  /* 将图标改为白色 */
}

.btn:hover .icon {
    transform: scale(1.1);
}

/* 按钮组样式 */
.btn-group {
    display: flex;
    gap: 0.5rem;
}

/* 按钮尺寸变体 */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* 禁用状态 */
.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* 加载状态 */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 卫生检查管理样式 */
.hygiene-management {
    padding-top: 80px;
}

.hygiene-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.hygiene-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.hygiene-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.hygiene-card-header {
    padding: 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hygiene-score {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
}

.score-excellent {
    color: #38a169;
}

.score-good {
    color: #3182ce;
}

.score-fair {
    color: #d69e2e;
}

.score-poor {
    color: #e53e3e;
}

.hygiene-card-content {
    padding: 1.25rem;
}

.hygiene-info {
    margin-bottom: 1rem;
}

.hygiene-time {
    color: #718096;
    font-size: 0.875rem;
}

.hygiene-comments {
    color: #4a5568;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-top: 0.5rem;
}

.hygiene-card-footer {
    padding: 1rem;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* 添加卫生检查表单样式 */
.add-hygiene-form {
    max-width: 480px;
    margin: 0 auto;
}

.hygiene-form-group {
    margin-bottom: 1.5rem;
}

.hygiene-form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-weight: 500;
}

.hygiene-form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s;
}

.hygiene-form-input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66,153,225,0.1);
    outline: none;
} 